﻿using Autofac;
using Library.Core.Domain;

namespace Synthesize.Infrastructure.Modules
{
    /// <summary>
    /// Domain模块
    /// </summary>
    public class DomainModule : Module
    {
        /// <summary>
        /// 加载
        /// </summary>
        /// <param name="builder"></param>
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterAssemblyTypes(typeof(DomainException).Assembly)
                .AsImplementedInterfaces()
                .InstancePerLifetimeScope();
        }
    }
}
